package com.jy.datapipeline.export.service;

import com.jy.datapipeline.common.commoninterface.EasyExcelExecutionStrategy;
import com.jy.datapipeline.export.entity.ExpTaskModel;

import java.util.List;
import java.util.Map;

public interface ExpTaskService extends EasyExcelExecutionStrategy {
    public ExpTaskModel findByTaskId(String taskId);

    public ExpTaskModel findByTaskName(String taskName);

    public List<ExpTaskModel> findByStatus(int status);

    public List<Map<String,Object>> findExpTaskByList(String taskName, String taskType,
                                                      int iDisplayStart, int iDisplayLength, String storeId, String ruleId, String status, String dataSourceId, String latestStatus);

    public int findExpTaskByCount(String taskName, String taskType, String storeId, String ruleId, String status, String dataSourceId, String latestStatus);

    public boolean updateExpTask(ExpTaskModel etm);

    public boolean saveExpTask(ExpTaskModel etm);

    public boolean deleteById(int id);

    public boolean deleteExpTask(String taskId);

    public  boolean updateExpTaskStatus(int status,String taskId,String netExecuTime);

    public List<Map<String,Object>> findExecuTask();

    public List<ExpTaskModel> findByStoreId(String storeId);

    public List<ExpTaskModel> findByRuleId(String ruleId);

//    ExpTaskModel analysisExcelRows(ExpTaskTemplateModel data);

//    void batchSaveExpTask(List<ExpTaskModel> expTaskModelList);

//    void batchDeleteExpTask(List<String> taskIds);
}
